/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.cognition.util.marshal;

/**
 *
 * @author richard
 */
public class BooleanMarshaller {
    public static final int MARSHAL_SIZE = 1; // booleans are packed into bytes

    public static boolean unmarshal(byte b) throws IllegalArgumentException {
        boolean result = b == 0 ? false : true;

        return result;
    }

}
